function element(){
	this.id = new Object();
	this.name = new Object();
	this.layer = null;
	this.source = null;

	this.states = { };
	this.attributes = { };
	this.onCanvas = false;
}
element.prototype.addState = function(new_state){
	this.states[new_state.id] = new_state;	
};

